package www.ld.com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import www.ld.com.domain.user.pojo.UserPO;

import javax.websocket.server.PathParam;
import java.util.List;
import java.util.Set;

public interface UserMapper extends BaseMapper<UserPO> {

    void insertPostId(@Param("postIds") List<String> postIds, @Param("userId") Long userId);

    void deletePostId(@Param("userId") Long userId);

    void insertRolesId(@Param("rolesIds") List<String> rolesIds, @Param("userId") Long userId);

    void deleteRolesId(@Param("userId") Long userId);

    Boolean existDepartment(@Param("depId") String depId);

    Set<String> findRolesIdByUserId(@Param("userId") String userId);

    Set<String> findPostIdByUserId(@Param("userId") String userId);

    Set<String> findResourceByUserId(@PathParam("userid") String userid);

}
